package com.geovis.emergency.spd.entity.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.geovis.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author Lonsho
 * @since 2022-08-02
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_log")
@ApiModel(value = "SystemLog对象", description = "日志表")
public class SystemLog extends BaseEntity {

    @ApiModelProperty("操作方式:POST/GET")
    private String requestType;

    @ApiModelProperty("请求URI")
    private String requestUri;

    @ApiModelProperty("操作IP地址")
    private String requestIp;

    @ApiModelProperty("方法类")
    private String className;

    @ApiModelProperty("方法名")
    private String methodName;

    @ApiModelProperty("访问入参")
    private String requestParams;

    @ApiModelProperty("访问出参")
    private String requestReturn;

    @ApiModelProperty("异常类名")
    private String exceptionClass;

    @ApiModelProperty("异常信息")
    private String exceptionMessage;

    @ApiModelProperty("执行开始时间")
    private LocalDateTime beginRequestTime;

    @ApiModelProperty("执行结束时间")
    private LocalDateTime endRequestTime;

    @ApiModelProperty("执行耗时")
    private Long spendTime;

    @ApiModelProperty("日志说明")
    private String logDescription;

    @ApiModelProperty("日志级别：INFO/ERROR")
    private String logLevel;

    @ApiModelProperty("完整性")
    private String sm4MacData;

    @ApiModelProperty("校验时间")
    private LocalDateTime verifyTime;

    @ApiModelProperty("验证状态 (1-正常，0-异常)")
    private String verifyStatus;


}
